package statusModel;

/**
 * @author Administrator
 * 核心：状态切换和状态终结
 */
public class Client {

    public static void main(String[] args) {
        Work emergencyProjects = new Work();
        int dayHour = 24;
        for (int i = 0; i < 1000; i++) {
            int hour = i % dayHour;
            emergencyProjects.setHour(hour);
            emergencyProjects.WriteProgram();
            if (i / dayHour == 10) {
                emergencyProjects.setFinish(true);
            }
        }
    }

}
